<ion-view title="群设置">
  <ion-content overflow-scroll="true" padding="true" class="has-header">
    <ion-refresher
      pulling-text="下拉刷新..."
      on-refresh="doRefresh()">
    </ion-refresher>
    <ion-list>

      <ion-item class="item item-icon-left item-icon-right" ng-click="modal.show()">
        <i class="icon ion-ios-information"></i>
        基本信息
        <i class="icon ion-chevron-right icon-accessory"></i>
      </ion-item>

      <div ng-if="group.groupRole=='1'">
        <ion-item class="item item-icon-left item-icon-right" ng-click="addGroupMemberModal.show()"
        >
          <i class="icon ion-plus"></i>
          添加成员
          <i class="icon ion-chevron-right icon-accessory"></i>
        </ion-item>
      </div>


      <ion-item class="item item-icon-left item-icon-right" ng-click="clearChatHistory()">
        <i class="icon ion-trash-a"></i>
        清空聊天记录
        <i class="icon ion-chevron-right icon-accessory"></i>
      </ion-item>


    </ion-list>
    <br>
    <ion-list>


      <div class="item item-divider">
        群成员({{group.members.length}})
      </div>

      <ion-item class="item item-icon-left "
                ng-repeat="member in group.members track by $index"

      >
        <i class="icon ion-person"></i>
        {{member.loginName}}
        <div ng-if="group.groupRole=='1' && !member.mySelf ">
          <ion-option-button class="button-assertive" ng-click="kickMember(member.id)">
            &nbsp;&nbsp; &nbsp;&nbsp;移除&nbsp;&nbsp;&nbsp;&nbsp;
          </ion-option-button>
        </div>

      </ion-item>

    </ion-list>
  </ion-content>
</ion-view>
